<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<style>
	[v-cloak]{
		display: none;
	}
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="keywords" content="旧书,二手书,二手教材,旧教材,校园书籍,校园旧书，旧书网">
<meta name="description" content="买卖二手书，就上旧书街">
<meta name="language" content="zh">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="res/form.css">
<link rel="stylesheet" type="text/css" href="res/pager.css">
<link rel="stylesheet" type="text/css" href="res/ubm_basic.css">
<link rel="shortcut icon"
	href="http://cdnfile.jiushujie.com/images/ubm.ico" type="image/x-icon">

<title>买卖二手书,就上旧书街</title>
</head>
<body>
<div th:replace="index::div#header"></div>
	<div class="main_middle" >
		<div id="main_content" class="center_980">
			<div class="content_left">
				<div class="padding_10 border_white">
					<div class="user_setting_block">
						<div class="title">个人设置</div>
						<ul>
							<li><a id="user_basic" href="user-01set.htm" >头像&amp;基本信息</a></li>
							<li><a id="self_introduction" href="user-02intro.htm">签名档</a></li>
							<li><a id="user_pwd" href="user-03changepwd.htm">修改密码</a></li>
							<li><a id="invite_link" href="user-04inviteLink.htm">我的邀请链接</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">我是卖家</div>
						<ul>
							<li><a id="sell_order_list" href="user-05sellOrderList.htm">收到的订单</a></li>
							<li><a id="mail_fee_set" href="user-06mailFee.htm">运费设置</a></li>
							<li><a id="bank_account" href="user-07bankAccount.htm">收款账号设置</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">我是买家</div>
						<ul>
							<li><a id="my_order_list" href="user-08orderList.html">我下的订单</a></li>
							<li><a id="address_info_set" href="user-09address.html">收货信息</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">动态</div>
						<ul>
							<li><a id="news_list" href="user-10newsList.htm">我的动态</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">书籍</div>
						<ul>
							<li><a id="sell_list" href="user-11mysell.htm">我的出售</a></li>
							<li><a id="soldout_list" href="user-12soldout.htm">我的售罄</a></li>
							<li><a id="buy_list" href="user-13mybuy.htm">我的求购</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">留言</div>
						<ul>
							<li><a id="sell_comment_tab"
								href="user-14commsell.htm">留言-出售</a></li>
							<li><a id="buy_comment_tab" href="user-15commbuy.htm">留言-求购</a></li>
							<li><a id="news_comment_tab"
								href="user-16commnews.htm">留言-动态</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">消息</div>
						<ul>
							<li><a id="inbox_tab" href="user-17inbox.htm">收件箱</a></li>
							<li><a id="outbox_tab" href="user-18outbox.htm">发件箱</a></li>
						</ul>
					</div>
					<div class="user_setting_block">
						<div class="title">用户</div>
						<ul>
							<li><a id="fan_by_me_tab" href="user-19follow.htm">我的关注</a></li>
							<li><a id="fan_of_me_tab" href="user-20fans.htm">我的粉丝</a></li>
						</ul>
					</div>
				</div>
			</div>
			<div class="content_right" v-cloak>
				<div class="border_white padding_10">
					<div style="float: left; text-align: center;">
						<img  class="user_profile" id="Userimg"
							 style="cursor: pointer" title="点击上传"
							 :src="t.user.head_img" alt="user profile"
							 onclick="headfile.click()">
						<input onchange="upload()" type="file" id="headfile"
							   accept="image/*"  style= " display: none">
						<br> <br> <a class="button_link"
									 onclick="headfile.click()">设置头像</a>
					</div>
					<script>
						var userHead;
						function upload() {
							let fd = new FormData();
							fd.append("file",headfile.files[0]);
							axios.post("jsj-user/upload",fd).then(res=>{
								Userimg.src = res.data.data;
								userHead = res.data.data;
								a();
							});

						}

						function a() {
							let params = new URLSearchParams();
							params.append("head",userHead);
							axios.post("jsj-user/jiushujie/jsjUser/saveHead",params).then(res=>{
								if (res.data.code == 1){
									Userimg.src = res.data.data;
									alert(res.data.msg);
								}else{
									alert(res.data.msg);
								}
							})

						}
					</script>
					<div class="align_left user_basic_info" v-cloak >
						邮箱: {{t.user.email}} <br> 昵称: {{t.user.account}} <br> 性别: {{t.user.gender}} <br>
						学校: {{t.user.school}} <br> 上次登录: {{t.user.last_login_time}}
					</div>
					<br>
					<div style="clear: both;"></div>
				</div>
			</div>
			<div class="clearfloat"></div>
		</div>
	</div>
<script>
	setTimeout(() => {
	var uv = new Vue({
		el:".main_middle",
		data:{user:null}
	})},200)
</script>
	<div style="border-bottom: 1px solid rgb(255, 255, 255);"></div>
	<div style="position: fixed; top: 122px; right: 20px;">
		<img style="width: 120px; margin-bottom: 10px;"
			src="res/ios_download.jpg"><br> <img
			style="width: 120px; margin-bottom: 10px;"
			src="res/android_download.jpg">
	</div>
	<div class="clearfloat"></div>
	<div class="bottom">
		<div class="center_980">
			<div class="bottom_left">
				<ul>
					<li><a href="http://www.jiushujie.com/site/about">关于我们</a></li>
					<li><a href="http://www.jiushujie.com/site/joinus">申请合作</a></li>
					<li><a href="http://www.jiushujie.com/site/privacy">隐私政策</a></li>
					<li><a href="http://www.jiushujie.com/site/term">服务条款</a></li>
					<li><a href="http://www.jiushujie.com/site/help">帮助</a></li>
					<li><a href="http://www.jiushujie.com/site/link">友情链接</a></li>
				</ul>
			</div>
			<div id="copyright">
				© 2020 by 旧书街 <a href="http://beian.miit.gov.cn/">蜀ICP备16007902号-2</a>
			</div>
		</div>
	</div>
	<h1 class="jiushujie_slogan">买卖二手书，就上旧书街。旧书街二手书交易网-您身边的旧书网站</h1>
</body>
</html>